#include <basic_types.h>
#include <sys_config.h>

#ifdef TTX_ARABIC_SUPPORT

static const UINT32 TTX_ARABIC_Font[][96][9] =
{
   //TTX_ARABIC_SUPPORT
		{
		     { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000},    //  032  0x20
                   { 0x00000000, 0x0001c007, 0x001c0070, 0x01c00700, 0x1c007001, 0xc0070000, 0x007001c0, 0x07000000, 0x00000000},    //  033  0x21
                   { 0x00000000, 0x001f7c7d, 0xf1f7c3cf, 0x0f3c79c1, 0xe7000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000},    //  034  0x22
		{0x00000000, 0x000ffc7f, 0xf9ffe7c7, 0x8f007f01, 0xfc07f01f, 0xc03c01fc, 0x67ff9efe, 0x79f00000, 0x00000000},
		{0x00000000, 0x3000c01f, 0xc0ffc3cf, 0x0f001f00, 0x1f001f00, 0x7c00f0f3, 0xc1fc01e0, 0x03000c00, 0x00000000},
                   { 0x00000000, 0x00000038, 0x19f0e6c7, 0x9b1c7ce0, 0xe7003803, 0xc01ee0f7, 0xc71b187c, 0x40e00000, 0x00000000},    //  037  0x25
			{ 	0x00000000,	0x00000000,	0x00000000,	0x00000000,	0x00000040,	0x013005c0,	0x7701dc07,	0x701dc077,	0xffc7fe00},
			{ 	0x00000000,	0x00000000,	0x00000000,	0x00000000,	0x03c01fb8,	0x76e1df87,	0x3e0e3ff8,	0x7fc00003,	0xb80ee000},
                   { 0x00000000, 0x0000001c, 0x007c0078, 0x01e007c0, 0x0f003c00, 0xf003c01f, 0x007807c0, 0x1c000000, 0x00000000},    //  041  0x29
                   { 0x00000000, 0x00000001, 0xc01f00f0, 0x03c01f00, 0x7801e007, 0x801e007c, 0x00f001f0, 0x01c00000, 0x00000000},    //  040  0x28
 		     { 0x00000000, 0x0001e007, 0x83deef7b, 0xbdeef7bb, 0xffe0fc3f, 0xfef7bbde, 0xef7b81e0, 0x07800000, 0x00000000},    //  042  0x2a
                   { 0x00000000, 0x00000000, 0x001e0078, 0x01e00781, 0xffc7ff1f, 0xfc07801e, 0x00780000, 0x00000000, 0x00000000},    //  043  0x2b
                   { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x000000f0, 0x03c00f00, 0x1c00e003, 0x800e0000},    //  044  0x2c
                   { 0x00000000, 0x00000000, 0x00000000, 0x00000001, 0xffc7ff1f, 0xfc000000, 0x00000000, 0x00000000, 0x00000000},    //  045  0x2d
                   { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x000000f0, 0x03c00f00, 0x3c000000, 0x00000000},    //  046  0x2e
                   { 0x00000000, 0x00000000, 0x3001c00f, 0x007803c0, 0x1e00f007, 0x803c01e0, 0x0f003800, 0x00000000, 0x00000000},    //  047  0x2f
                   { 0x00000000, 0x00000007, 0x807f83cf, 0x0f3c3cf0, 0xf3c3cf0f, 0x3c3cf0f3, 0xc3cf07f8, 0x07800000, 0x00000000},    //  048  0x30
                   { 0x00000000, 0x00000003, 0xc01f00fc, 0x07f01fc0, 0x0f003c00, 0xf003c00f, 0x003c00f0, 0x03c00000, 0x00000000},    //  049  0x31
                   { 0x00000000, 0x0000000f, 0xc07f83ff, 0x0e3c38f0, 0x07803c01, 0xe00f0078, 0x03ff0ffc, 0x3ff00000, 0x00000000},    //  050  0x32
                   { 0x00000000, 0x00000007, 0x807f03ce, 0x0e1c3870, 0x03c03c00, 0xf000f0e1, 0xc3ce07f0, 0x07800000, 0x00000000},    //  051  0x33
                   { 0x00000000, 0x00000001, 0xc00f007c, 0x03f01fc0, 0xf7071c1c, 0x707ff1ff, 0xc01c0070, 0x01c00000, 0x00000000},    //  052  0x34
                   { 0x00000000, 0x0000007f, 0xe1ff8700, 0x1c007001, 0xff07fe00, 0x7800e1c3, 0x87de0ff0, 0x1f800000, 0x00000000},    //  053  0x35
                   { 0x00000000, 0x0000000f, 0xc07f8186, 0x0e003800, 0xfe03fc0e, 0x3838e0e3, 0x818e07f0, 0x0f800000, 0x00000000},    //  054  0x36
                   { 0x00000000, 0x0000003f, 0xe0ff8006, 0x003800e0, 0x07001800, 0xe0070018, 0x00e00300, 0x0c000000, 0x00000000},    //  055  0x37
                   { 0x00000000, 0x0000000f, 0x807f038e, 0x0e3838e0, 0xe381fc07, 0xf038e0e3, 0x838e07f0, 0x0f800000, 0x00000000},    //  056  0x38
                   { 0x00000000, 0x0000000f, 0x807f038e, 0x0e3838e0, 0xe3838e07, 0xf80fe003, 0x830e0ff0, 0x1f800000, 0x00000000},    //  057  0x39
                   { 0x00000000, 0x00000000, 0x003c00f0, 0x03c00f00, 0x3c000000, 0x000f003c, 0x00f003c0, 0x00000000, 0x00000000},    //  058  0x3a
			{	0x00000000,	0x00006003,	0x801e0070,	0x01c00700,	0x00000001,	0xc007001c,	0x00700000,	0x00000000,	0x00000000},
		     { 0x00000000, 0x003c00f8, 0x03f801f8, 0x03f00fc0, 0x1fc01f01, 0xfc0fc07e, 0x0fe03e00, 0xf0000000, 0x00000000},    //  062  0x3e
                   { 0x00000000, 0x00000000, 0x01ffc7ff, 0x1ffc7ff0, 0x0007ff1f, 0xfc7ff000, 0x00000000, 0x00000000, 0x00000000},    //  061  0x3d
                   { 0x00000000, 0x00001c01, 0xf01fc0fc, 0x07e01f83, 0xf80f803f, 0x801f803f, 0x007f007c, 0x00700000, 0x00000000},    //  060  0x3c
			{ 	0x00000003,	0xfe0ff870,	0x71c1c707,	0x1c007001,	0xf803e001,	0xc007001c,	0x00700000,	0x07001c00,	0x70000000},

			{ 	0x00000000,	0x001dc077,	0x01dc0007,	0x001c07f0,	0x7fc3c71e,	0x1c70f9ff,	0x73fdc000,	0x00000000,	0x00000000},
			{ 	0x00000000,	0x00000000,	0x00000000,	0x00000000,	0x0f007c03,	0xc01e01ff,	0x07fc0000,	0x00000000,	0x00000000},
			{ 	0x00000000,	0x00000000,	0x00000000,	0x00000000,	0x00007003,	0xe00f83f7,	0xffdfc000,	0x7001c007,	0x00000000},
			{ 	0x00000000,	0x00000000,	0x00000000,	0x00000000,	0x000e01f8,	0x07e01fff,	0xf7ff8000,	0x07001c00,	0x70000000},
			{ 	0x00000000,	0x00000073,	0x81ce0738,	0x00000000,	0x00007003,	0xe00f83f7,	0xffdfc000,	0x00000000,	0x00000000},
			{ 	0x00000000,	0x00000000,	0x0071c1c7,	0x071c0000,	0x000e01f8,	0x07e01fff,	0xf7ff8000,	0x00000000,	0x00000000},
			{ 	0x00000000,	0x7001c007,	0x001c0070,	0x01c00700,	0x1c007001,	0xc007000f,	0xf03fc000,	0x00000000,	0x00000000},
			{ 	0x00000000,	0x7001c007,	0x001c0070,	0x01c00700,	0x1c007001,	0xc007001c,	0x00700000,	0x00000000,	0x00000000},
			{ 	0x00000000,	0x00000000,	0x00000000,	0x00000000,	0x00003c00,	0xf800e3ff,	0x8ffc0000,	0x3800e003,	0x80000000},
			{ 	0x00000000,	0x0000001c,	0xe07381ce,	0x00000fc0,	0x7f83cf1e,	0x1e70387f,	0x81fe0000,	0x00000000,	0x00000000},
			{ 	0x00000000,	0x00000000,	0x01ce0738,	0x1ce00000,	0x00003c00,	0xf800e3ff,	0x8ffc0000,	0x00000000,	0x00000000},
			{ 	0x00000000,	0xe003800e,	0x01ce0738,	0x1ce00000,	0x00003c00,	0xf800e3ff,	0x8ffc0000,	0x00000000,	0x00000000},
			{ 	0x00000000,	0x00000000,	0x00000000,	0x00001f01,	0xff071c00,	0x7c0073ff,	0xffffc000,	0x07001c00,	0x70000000},
			{ 	0x00000000,	0x00000000,	0x00000000,	0x00001f01,	0xff071c00,	0x7c0073ff,	0xffffc000,	0x00000000,	0x00000000},
			{ 	0x00000000,	0x0001c007,	0x001c0000,	0x00001f01,	0xff071c00,	0x7c0073ff,	0xffffc000,	0x00000000,	0x00000000},
			{ 	0x00000000,	0x00000000,	0x00000000,	0x007801e0,	0x03c00f00,	0x1e00787f,	0xf1ffc000,	0x00000000,	0x00000000},
			{ 	0x00000000,	0x3800e003,	0x80000000,	0x007801e0,	0x03c00f00,	0x1e00787f,	0xf1ffc000,	0x00000000,	0x00000000},
			{ 	0x00000000,	0x00000000,	0x00000000,	0x00000000,	0x00000000,	0x1e007801,	0xf007c00e,	0x007803c3,	0xfe0ff000},
			{ 	0x00000000,	0x00000000,	0x0001c007,	0x001c0000,	0x00000000,	0x1e007801,	0xf007c00e,	0x007803c3,	0xfe0ff000},
			{ 	0x00000000,	0x00000000,	0x00000000,	0x00000000,	0x00000038,	0xe7e39fff,	0xf7f7c000,	0x00000000,	0x00000000},
			{ 	0x00000e00,	0x3800e01c,	0x7071c1c7,	0x00000000,	0x00000038,	0xe7e39fff,	0xf7f7c000,	0x00000000,	0x00000000},
			{ 	0x00000000,	0x00000000,	0x00000000,	0x000000f0,	0x07e039f9,	0xc7e71fff,	0xf7ffc000,	0x00000000,	0x00000000},
			{ 	0x00000000,	0x00001c00,	0x7001c000,	0x000000f0,	0x07e039f9,	0xc7e71fff,	0xf7ffc000,	0x00000000,	0x00000000},
			{ 	0x00007001,	0xc007001c,	0x007001c0,	0x077e1ffc,	0x7c71f1c7,	0x073c1fff,	0xffff8000,	0x00000000,	0x00000000},
			{ 	0x00007001,	0xc7071c1c,	0x707001c0,	0x077e1ffc,	0x7c71f1c7,	0x073c1fff,	0xffff8000,	0x00000000,	0x00000000},
			{ 	0x00000000,	0x00000000,	0x00000000,	0x00000fe0,	0x7fc3c30e,	0x003803ff,	0xffffc000,	0x00000000,	0x00000000},
			{ 	0x00000000,	0x0000e003,	0x800e0000,	0x00000fe0,	0x7fc3c30e,	0x003803ff,	0xffffc000,	0x00000000,	0x00000000},
			{ 	0x00001c00,	0x7001c038,	0xe0e3838e,	0x00000000,	0x00007003,	0xe00f83f7,	0xffdfc000,	0x00000000,	0x00000000},
			{ 	0x00000000,	0x00000000,	0x00000000,	0x00001fc0,	0x7fc00f00,	0x3003c3ff,	0xffe3c000,	0x3800e003,	0x80000000},
			{ 	0x00000000,	0x00000000,	0x00000000,	0x00001fc0,	0x7fc00f00,	0x3003c3ff,	0xffe3c000,	0x00000000,	0x00000000},
			{ 	0x00000000,	0x0003800e,	0x00380000,	0x00001fc0,	0x7fc00f00,	0x3003c3ff,	0xffe3c000,	0x00000000,	0x00000000},
                     { 0x00000000, 0x000f3c3c, 0xf0f3c7ff, 0x9ffe7ff8, 0xf3c3cf0f, 0x3c7ff9ff, 0xe3cf0f3c, 0x3cf00000, 0x00000000},    //  035  0x23
			{ 	0x00000000,	0x00000000,	0x00000000,	0x00000000,	0x00000000,	0x000003ff,	0xffffc000,	0x00000000,	0x00000000},
			{ 	0x00000000,	0x3800e003,	0x80000000,	0x01f80ff0,	0x39c0e703,	0x9c03f3ff,	0x0ffc0000,	0x00000000,	0x00000000},
			{ 	0x00000000,	0xe7039c0e,	0x70000000,	0x01f80ff0,	0x39c0e703,	0x9c03f3ff,	0x0ffc0000,	0x00000000,	0x00000000},
			{ 	0x000000f0,	0x07c03c01,	0xe00f0078,	0x03c00780,	0x0f001e00,	0x3c007bff,	0xffffc000,	0x00000000,	0x00000000},
			{ 	0x00000000,	0x3800e003,	0x800e0038,	0x00e00380,	0x0e003800,	0xe00383fe,	0x0fe00000,	0x00000000,	0x00000000},
			{ 	0x00000000,	0x00000000,	0x00000000,	0x00000000,	0x3f03fe0e,	0x3838e3ff,	0x8cfe0000,	0x00000000,	0x00000000},
			{ 	0x00000000,	0x000e0038,	0x00e00000,	0x00000000,	0x00003c00,	0xf800e3ff,	0x8ffc0000,	0x00000000,	0x00000000},
			{ 	0x00000000,	0x00000000,	0x00000000,	0x03c03fe0,	0xefc3b38f,	0x861e1bff,	0xef7f8000,	0x00000000,	0x00000000},
			{ 	0x00000000,	0x00000000,	0x00000000,	0x00000000,	0x1fc0ff83,	0x8e0e383f,	0xf07fc00e,	0x007803c3,	0xfe0ff000},
			{ 	0x00000000,	0x00000000,	0x00000000,	0x00000000,	0x1fc0ff83,	0x8e4e1b3c,	0x7c7cf078,	0xc07301cf,	0xff1ff800},
			{ 	0x00000000,	0x00000000,	0x00000000,	0x00000000,	0x00003c00,	0xf800e3ff,	0x8ffc0000,	0x7381ce07,	0x38000000},
			{ 	0x00000000,	0x3800e003,	0x8071c1c7,	0x071c0000,	0x000e01f8,	0x07e01fff,	0xf7ff8000,	0x00000000,	0x00000000},
			{ 	0x00000000,	0x00000000,	0x00ff07fc,	0x1c7c73f0,	0x1ff1ffcf,	0x83780dce,	0x07381ce0,	0x7001c077,	0xffcffe00},
			{ 	0x00000000,	0x00000000,	0x00ff07fc,	0x1c7c73f0,	0x1ff1ffcf,	0x83780dc0,	0x07001c00,	0x7001c077,	0xffcffe00},
			{ 	0x07001c00,	0x70000000,	0x00ff07fc,	0x1c7c73f0,	0x1ff1ffcf,	0x83780dc0,	0x07001c00,	0x7001c077,	0xffcffe00},
			{ 	0x00000000,	0x00000000,	0x00000000,	0x00000000,	0x00007003,	0xe00f83e3,	0xff8fc000,	0x7381ce07,	0x38000000},
			{ 	0x00000000,	0x00000000,	0x00000000,	0x00000000,	0x03e01f98,	0x7061c387,	0x0e0e381c,	0xe079ffe7,	0xff000000},
			{ 	0x00000000,	0x00000000,	0x00000000,	0x00003ff0,	0xffc1ce07,	0x380fc3ff,	0xffdfc000,	0x00000000,	0x00000000},
			{ 	0x00000000,	0x7001c007,	0x00000000,	0x00003ff0,	0xffc1ce07,	0x380fc3ff,	0xffdfc000,	0x00000000,	0x00000000},
			{ 	0x00000000,	0x7001c007,	0x00000000,	0x00000fc0,	0x7f81ce07,	0x380fc3ff,	0xffdfc000,	0x00000000,	0x00000000},
			{ 	0x00000000,	0x0e003800,	0xe0000000,	0x007e03ff,	0x0e7c39e0,	0xe780ffff,	0xcfff0000,	0x00000000,	0x00000000},
			{ 	0x00000001,	0xce07381c,	0xe0000000,	0x00000fc0,	0x7f81ce07,	0x380fc3ff,	0xffdfc000,	0x00000000,	0x00000000},
			{ 	0x00000000,	0x39c0e703,	0x9c000000,	0x007e03fc,	0x0e7039c0,	0xff61ff80,	0x7e01f80f,	0x7079ffc3,	0xfe000000},
			{ 	0x00000070,	0x01c00700,	0x1c3e71f9,	0xc7071c1c,	0xfe73f9e0,	0x07801fff,	0xffff8000,	0x00000000,	0x00000000},
			{ 	0x00001c00,	0x7001c007,	0x001c0070,	0x01c00700,	0x1c007001,	0xc00703fb,	0xffefc000,	0x00000000,	0x00000000},
			{ 	0x00000070,	0x01c00700,	0x1c007001,	0xc007001c,	0x007001cc,	0x07701dc0,	0x7701dc07,	0x701c7fe1,	0xff800000},
			{ 	0x00000000,	0x00000000,	0x00000000,	0x00000000,	0xff83fe0e,	0x3878f3be,	0xfefbc000,	0x00000000,	0x00000000},
			{ 	0x00000000,	0x00000000,	0x00000000,	0x00000000,	0x07e03fc0,	0xe7039c3f,	0xf0ff8300,	0x0c003000,	0xc0030000},
			{ 	0x00000000,	0x00000070,	0x01c00700,	0x00000000,	0x00007003,	0xe00f83f7,	0xffdfc000,	0x00000000,	0x00000000},
			{ 	0x00000000,	0x00000000,	0x00000000,	0x00e00380,	0x0ee00380,	0x0f203d80,	0xf603980e,	0x3078ffc1,	0xfe000000},
			{ 	0x0000e0e3,	0x838e0e1c,	0x3870e0e3,	0x838e0738,	0x1ce03b80,	0xfe03f83f,	0xc1e3870e,	0x3ff8ffe0,	0x00000000},
	                    {0x0001ffe7, 0xff9ffe7f, 0xf9ffe7ff, 0x9ffe7ff9, 0xffe7ff9f, 0xfe7ff9ff, 0xe7ff8000, 0x00000000, 0x00000000}    //  127  0x7f

		},
};

UINT32* get_char_from_arabic(UINT8 charset, UINT8 character, UINT8 i)
{
   return((UINT32*)&TTX_ARABIC_Font[charset][character][i]);
}

#endif
